/*
 * ChatUsers.fx
 *
 * Created on Apr 26, 2009, 6:53:44 PM
 */

package com.dg.gaming.client.fx.gui;import com.dg.gaming.client.fx.gui.FXMain;
import com.dg.gaming.client.fx.gui.TablePlayers;
import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.Node;
import Window.JDLayout.DigLayout;
import Window.JDLayout.Item;
import Window.JDLayout.Row;
import javafx.ext.swing.SwingLabel;

/**
 * @author dito
 */

public class ChatUsers extends CustomNode {

    public var mainframe:FXMain;
    public var tablePlayers=TablePlayers{mainframe:mainframe};


    

public function setUp(mainframe:FXMain){
    tablePlayers.setUp(mainframe);
}

    public override  function create():Node {
        return Group{
                content:
                    DigLayout{
                        columns: ["100%"]
                        rows:["30%","30%","40%"]
                        digrows: [
                            Row{
                               items: [
                                Item{
                                    valign:"middle"
                                    item:
                                        SwingLabel{}

                                }

                               ]
                            }
                            Row{
                               items: [
                                Item{
                                    valign:"middle"
                                    item:
                                        ChatComponent{}

                                }

                               ]
                            }
                            Row{
                               items: [
                                Item{
                                    valign:"middle"
                                    item:
                                        tablePlayers
                                }

                               ]
                            }
                        ]

                    }
                    }
    }
    
}
